package com.foryou.swkj.core.common;

/**
 * 响应码枚举，参考HTTP状态码的语义
 */
public enum ResultCode {
    SUCCESS("200","成功"),//成功
    FAIL("400","失败"),//失败
    UNAUTHORIZED("401","未认证（签名错误）"),//未认证（签名错误）
    NOT_FOUND("404","接口不存在"),//接口不存在
    INTERNAL_SERVER_ERROR("500","服务器内部错误");//服务器内部错误

    public String code;
    public String msg;

    ResultCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
